package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.Apartment_LayoutDAO;
import com.wanda.model.Apartment_LayoutModel;
import com.wanda.service.Apartment_LayoutService;

@Service
public class Apartment_LayoutServiceImpl implements Apartment_LayoutService{

	@Autowired
	private Apartment_LayoutDAO apartment_LayoutDAO;
	
	public void insertApar(Apartment_LayoutModel model) {
		// TODO Auto-generated method stub
		apartment_LayoutDAO.insertApar(model);
	}

	public int updateApar(Apartment_LayoutModel model) {
		// TODO Auto-generated method stub
		return apartment_LayoutDAO.updateApar(model);
	}

	public int deleteApar(Apartment_LayoutModel model) {
		// TODO Auto-generated method stub
		return apartment_LayoutDAO.deleteApar(model);
	}

	public Apartment_LayoutModel selectById(String id) {
		// TODO Auto-generated method stub
		return apartment_LayoutDAO.selectById(id);
	}

	public List<Apartment_LayoutModel> selectAll() {
		// TODO Auto-generated method stub
		return apartment_LayoutDAO.selectAll();
	}


}
